//管理员表单验证

const joi = require('joi')


const page = joi.number().integer().required()
const limit = joi.number().integer().required()
const id = joi.number().integer().min(1).required()
const type = joi.number().integer().required()

const detail = joi.string().max(255) //说明
const images = joi.string().allow("")
const strType = joi.string().required()
//用户列表
exports.getUserList = {
    query:{
        page,
        limit
    }
}
//启用&禁用用户
exports.userIsdelete = {
    body:{
        id,
        type
    }
}

//管理员审核列表
exports.audit = {
    query:{
        page,
        limit,
        type
    }
}

//审核操作
exports.auditOperate = {
    body:{
        ac_detail:detail,
        ac_images:images,
        type:strType,
        id
    }
}
